package com.example.bicycle.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bicycle.domain.dto.SearchRecordsDto;
import com.example.bicycle.domain.entity.RideRecord;
import com.example.bicycle.domain.vo.PageVo;


/**
 * (RideRecord)表服务接口
 *
 * @author makejava
 * @since 2023-08-02 21:29:49
 */
public interface RideRecordService extends IService<RideRecord> {

    RideRecord getLatestRecordByBikeId(int bikeId);

    PageVo getAllRecords(int pageNum, int pageSize);

    PageVo getRecordsByUserId(int pageNum, int pageSize, int userId);

    PageVo getRecordsByBikeId(int pageNum, int pageSize, int bikeId);

    PageVo getRecordsByUserIdAndBikeId(int pageNum, int pageSize, int userId, int bikeId);

    RideRecord getLatestRecordByUserId(Integer userId);

    PageVo getRecordsByUserIdOrBikeId(int pageNum, int pageSize, SearchRecordsDto searchRecordsDto);
}

